package main.com.hjy.jdbc.dao;

import main.com.hjy.jdbc.entity.RoomInfo;

import java.util.List;

public interface RoomInfoDao {
    //增

    /**
     * 添加
     * @param roominfo
     * @return
     */
    public boolean addRoomInfo(RoomInfo roominfo);

    /**
     * 删除
     * @param roominfo
     * @return
     */
    public boolean deleteRoomInfo(RoomInfo roominfo);

    /**
     * 查找
     * @return
     */
    public List<RoomInfo> queryAllRoomInfo();


    /**
     * 修改
     * @param roomid
     * @param roomname
     * @param roomtypeid
     * @param price
     * @param status
     * @param capacity
     * @return
     */
    public boolean updateRoomInfo(String roomid,String roomname,String roomtypeid,Double price,Integer status,Integer capacity);




}
